package com.xmy.cultivate.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xmy.cultivate.entity.SchoolQuarter;
import com.xmy.cultivate.entity.StudentAccount;
import com.xmy.cultivate.entity.response.AiSitePc;
import com.xmy.cultivate.feign.IPlanFeignClient;
import com.xmy.cultivate.mapper.AiSitePcMapper;
import com.xmy.cultivate.service.IAiSitePcService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 场地电脑 服务实现类
 * </p>
 *
 * @author hpiggy
 * @since 2024-10-28
 */
@Service
public class AiSitePcServiceImpl extends ServiceImpl<AiSitePcMapper, AiSitePc> implements IAiSitePcService {
    @Autowired
    IPlanFeignClient iPlanFeignClient;


    /**
     * 获取电脑管理 使用情况列表
     */
    @Override
    public Map<String, Object> useConditionList(String status, String useStatus, String studentName, String schoolId, String schoolSiteId) {
        return iPlanFeignClient.useConditionList(status, useStatus, studentName, schoolId, schoolSiteId);
    }

    /**
     * 获取校区场地
     */
    @Override
    public List<SchoolQuarter> aiSchoolSiteList(String yearPart, String quarterNum, String schoolId) {
        return iPlanFeignClient.aiSchoolSiteList(yearPart, quarterNum, schoolId);
    }

    /**
     * 调整电脑使用情况
     */
    @Override
    public String updateComputerUse(AiSitePc aiSitePc) {
        return iPlanFeignClient.updateComputerUse(aiSitePc);
    }

    @Override
    public Map<String, Object> getRepairReason(Long id) {
        return iPlanFeignClient.getRepairReason(id);
    }


    @Override
    public List<StudentAccount> studentAccountList(String schoolId, String studentName, String account, String yearPart, String quarterNum) {
        return iPlanFeignClient.studentAccountList(schoolId, studentName, account, yearPart, quarterNum);
    }
}
